package org.KeyCrafter.ds.skiplist;

public class RangeSpec {
    // 最小值
    private double min;
    // 最大值
    private double max;

    // 指示最小值和最大值是否包含在范围之内
    // true表示不包含，falise表示包含
    private boolean minex;
    private boolean maxex;

    public RangeSpec(double min, double max, boolean minex, boolean maxex) {
        this.min = min;
        this.max = max;
        this.minex = minex;
        this.maxex = maxex;
    }

    public double getMin() {
        return min;
    }

    public void setMin(double min) {
        this.min = min;
    }

    public double getMax() {
        return max;
    }

    public void setMax(double max) {
        this.max = max;
    }

    public boolean isMinex() {
        return minex;
    }

    public void setMinex(boolean minex) {
        this.minex = minex;
    }

    public boolean isMaxex() {
        return maxex;
    }

    public void setMaxex(boolean maxex) {
        this.maxex = maxex;
    }
}
